home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
indeo
/
nwxmas.exe
/
XD_GLOB.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-04
|
1KB
|
43 lines
/*
** ╔══════════════════════════════════════════════════════════════╗
** ║ ║
** ║ Copyright (c) 1993 Digital Video Arts, Ltd. ║
** ║ All Rights Reserved ║
** ║ ║
** ╚══════════════════════════════════════════════════════════════╝
**
** Christmas card demo
**
** file: xd_init.c - handle all initialization
*/
#include <stdio.h>
#include <fcntl.h>
#include "nw.h"
#include "nwerrno.h"
#include "xmasdemo.h"
DisplayDef *d[6], *warp, *map, *mapg, *text, *onscreen, *balls;
AvH *a; // fire
int channel; // audio channel
long audiolength; // length of audio data
//
// Define the location in the mapfile for the three warps
//
Rect warps[MAXWARPS] = {
{{0, 0}, {128, 128}},
{{0, 128}, {64, 64}},
{{128, 128}, {40, 40}}
};
BallStruct Balls[] = {
{NULL, {120, 20}, WARP0, 128, 0, 0},
{NULL, {320, 130}, WARP1, 0, 128, 0},
{NULL, {40, 300}, WARP2, 0, 0, 128},
{NULL, {400, 140}, WARP1, 128, 80, 0},
{NULL, {20,40},WARP2, 0, 0, 0},
{NULL, {180, 320}, WARP1, 80, 0, 128},
{NULL, {380, 266}, WARP0, 224, 40, 40},
{NULL, {80, 240}, WARP2, 40, 220, 120},
};